package cn.fsd.vo;

import lombok.Data;

@Data
public class Auth {
  String userName;
  boolean successful;
  String authMsg;

  public void authSuccess(String msgCode){
    this.setSuccessful(true);
    this.setAuthMsg(msgCode);
  }

  public void authFailed(String msgCode){
    this.setSuccessful(false);
    this.setAuthMsg(msgCode);
  }
}
